<%@page import="Model.User"%>
<%@ page
    language="java"
    contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"
    %>
    

    <table width="960px" cellspacing="0" cellpadding="0" border="0" bgcolor="#e8e8e8" >
        <tbody>
            <tr>
                <td width="300" valign="middle"><img src="image/newlogo.png" alt="Siêu thị di động" border="0" />
                </td>
                <td width="380">
                    <table cellspacing="0" cellpadding="0" border="0" background="image/sea_2.jpg" align="center">
                        <tbody>
                            <tr>
                                <td width="7" align="left"><img border="0" src="image/sea_1.jpg" />
                                </td>
                                <td>
                                    <form style="margin: 0px; padding: 0px;" id="basicsearch" name="topsearch" method="get" action="BasicSearch.jsp">
                                        <table cellspacing="0" cellpadding="2">
                                            <tbody>
                                                <tr>
                                                    <td nowrap="nowrap" class="textBold">TÌM KIẾM</td>
                                                    <td width="100">
                                                        <input type="text" name="keyword" onfocus="if(this.value=='Từ khóa') this.value='';" onblur="if(this.value=='') this.value='Từ khóa';" value="Từ khóa";style="width: 150px;" name="q" class="form_search" />
                                                    </td>
                                                    <td><input type="image" src="image/search_1.jpg" /></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </form>
                                </td>
                                <td align="right"><img border="0" src="image/sea_3.jpg" /></td>
                            </tr>
                        </tbody>
                    </table>
                </td>
                <td width="280" id="hotline">Hotline: 0979083732
                    <%

                                User user = (User) session.getAttribute("sessionlogin");
                                System.out.println(user);
                                if (user != null) {
                                 if (user.getQuyen().getTenQuyen() == 0) {
 							
                                        response.sendRedirect("/Admin/ProductManage.jsp");
                                        return;
                                 }


                    %>
                    <div style="position:absolute; left: 870px; top: 99px;">Chào <%= user.getHoTen() %>/<a style="color: red" href = "/SHOPCH4/Admin/index.jsp">Quản Trị</a>  <a style="color: red"href="logout">Thoát</a></div>
                    <% }%>
                </td>

            </tr>
        </tbody>
    </table>
